import React, { Component } from 'react';
import { Link } from 'react-router-dom';
import '../style/less/main.css';
import axios from '../api/index';
import {Button ,mountNode } from 'antd';
import { createStore } from 'redux';
import { Provider, connect } from 'react-redux';
import actions from '../actions/index';
 import {reducer} from '../reducers/index';
 let store = createStore(reducer);




class AddToDo2 extends React.Component{
    constructor(props){
        super(props)
        console.log('AAAAA')
        console.log(this.props)
      //  this.state = store.getState();
    }
    
    render(){
        return(
            <div>
                <h2>数据流取值</h2>
                <div>{this.props.add2}</div>
            </div>
           )
    }
}
export default AddToDo2;